package helper

import "fmt"

func HmsMillis(millis int64) (int64, int64, int64, int64) {
	seconds := millis / 1000
	minutes := seconds / 60
	hours := minutes / 60

	milliseconds := millis % 1000
	seconds = seconds % 60
	minutes = minutes % 60

	return hours, minutes, seconds, milliseconds
}
func HmsMillisString(millis int64) string {
	h, m, s, milli := HmsMillis(millis)
	return fmt.Sprintf("%02d:%02d:%02d,%03d", h, m, s, milli)
}
